export default [
  {
    path: '/client',
    layout: false,
    routes: [
      {
        path: '/client/markdown',
        layout: false,
        // 对应locales/zh-CN/menu.ts的键
        name: 'client.markdown',
        component: './client/markdown',
      },
      {
        path: '/client/index',
        name: 'client.index',
        layout: false,
        component: './client/Index',
      },
      {
        path: '/client/test',
        name: 'client.test',
        layout: false,
        component: './client/test',
      },
      {
        path: '/client/detail/:id',
        name: 'client.detail',
        layout: false,
        component: './client/blog/Detail',
      },
      {
        path: '/client/mine',
        name: 'client.mine',
        layout: false,
        component: './client/mine',
      },
      /////
      {
        path: '/client/mine/columnDetail',
        name: 'client.mine',
        layout: false,
        component: './client/mine/components/Column/components/columnDetail',
      },
      /////
      {
        path: '/client/userdetail',
        name: 'client.userdetail',
        layout: false,
        component: './client/UserDetail',
      },
      {
        path: '/client/discuss',
        name: 'client.discuss',
        layout: false,
        component: './client/discuss',
      },
      {
        path: '/client/check/detail/:id',
        name: 'detail',
        layout: false,
        component: './workList/article-list/detail',
      },
      {
        path: '/client/book',
        name: 'client.book',
        layout: false,
        component: './client/book',
      },
      {
        path: '/client/Sign',
        name: 'client.Sign',
        layout: false,
        component: './client/Sign',
      },
      ////礼物兑换页面
      {
        path: '/client/Signer',
        name: 'client.Sign',
        layout: false,
        component: './client/Signer',
      },
    ],
  },
  {
    path: '/user',
    // 是否使用布局 因为是登陆页面所以不需要
    layout: false,
    // 子路由
    routes: [
      {
        path: '/user/login',
        layout: false,
        name: 'login',
        component: './user/Login',
      },
      {
        path: '/user',
        redirect: '/user/login',
      },
      {
        name: 'register-result',
        icon: 'smile',
        path: '/user/register-result',
        component: './user/register-result',
      },
      {
        name: 'register',
        icon: 'smile',
        path: '/user/register',
        component: './user/register',
      },
      {
        name: 'choose',
        icon: 'smile',
        path: '/user/choose',
        component: './user/choose',
      },
      {
        component: '404',
      },
    ],
  },
  {
    path: '/dashboard',
    name: 'dashboard',
    icon: 'dashboard',
    routes: [
      {
        path: '/dashboard',
        redirect: '/dashboard/echarts',
      },
      {
        name: 'analysis',
        icon: 'smile',
        path: '/dashboard/echarts',
        component: './dashboard/echarts',
      },
      // {
      //   name: 'monitor',
      //   icon: 'smile',
      //   path: '/dashboard/echarts',
      //   component: './dashboard/echarts',
      // },
      // {
      //   name: 'workplace',
      //   icon: 'smile',
      //   path: '/dashboard/workplace',
      //   component: './dashboard/workplace',
      // },
    ],
  },
  {
    path: '/peopleList',
    icon: 'table',
    name: 'peopleList',
    routes: [
      {
        path: '/peopleList',
        redirect: '/peopleList/table-list',
      },
      {
        name: 'table-list',
        icon: 'smile',
        path: '/peopleList/table-list',
        component: './peopleList/table-list',
      },
      {
        name: 'blacklist-list',
        icon: 'smile',
        path: '/peopleList/blacklist-list',
        component: './peopleList/blacklist-list',
      },
    ],
  },
  {
    path: '/workList',
    icon: 'table',
    name: 'workList',
    routes: [
      {
        path: '/workList',
        redirect: '/workList/table-list',
      },

      {
        name: 'basic-list',
        icon: 'smile',
        path: '/workList/basic-list',
        component: './workList/basic-list',
      },
      {
        name: 'article-list',
        icon: 'smile',
        path: '/workList/article-list',
        component: './workList/article-list',
      },
      {
        name: 'column-list',
        icon: 'smile',
        path: '/workList/column-list',
        component: './workList/column-list',
      },
    ],
  },
  {
    path: '/community',
    icon: 'table',
    name: 'community',
    routes: [
      {
        name: 'community-list',
        icon: 'smile',
        path: '/community/community-list',
        component: './community/community-list',
      },
    ],
  },
  {
    name: 'exception',
    icon: 'warning',
    path: '/exception',
    routes: [
      {
        path: '/exception',
        redirect: '/exception/opinion',
      },
      {
        name: 'card-list',
        icon: 'smile',
        path: '/exception/card-list',
        component: './exception/card-list',
      },
      {
        name: 'opinion',
        icon: 'smile',
        path: '/exception/opinion',
        component: './exception/opinion',
      },
      {
        name: 'report',
        icon: 'smile',
        path: '/exception/report',
        component: './exception/report',
      },
      {
        name: 'add',
        icon: 'smile',
        path: '/exception/add',
        component: './exception/add',
      },
    ],
  },
  {
    path: '/',
    redirect: '/user/login',
  },

  {
    component: '404',
  },
];
